<?php ob_start("ob_gzhandler"); ?>
<? if(isset($page)){ $body_class = 'style="overflow:hidden"';}?>
<!doctype html>
<html>
    <head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>K12 Student Page</title>
		<?php
		$custom = array(
			  'href' => 'assets/css/custom.css',
			  'rel' => 'stylesheet',
			  'type' => 'text/css',
			  'media' => 'all'
			  );
		$link = array(
			  'href' => 'assets/css/style.css',
			  'rel' => 'stylesheet',
			  'type' => 'text/css',
			  'media' => 'all'
			  );
		$link2 = array(
			  'href' => 'assets/css/custom-theme/jquery-ui-1.8.18.custom.css',
			  'rel' => 'stylesheet',
			  'type' => 'text/css',
			  'media' => 'all'
			  );

		echo link_tag($link);
		echo link_tag($link2);
		echo link_tag($custom);
		?>
		<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/jquery-ui-1.8.18.custom.min.js"></script>
		<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/myjs.js"></script>
		
		<!-- start css files for Grocery CRUD-->
		<?php if(!empty($output->css_files)):?>
			<?php  foreach($output->css_files as $file): ?>
				<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
			<?php endforeach; ?>
		<?php endif;?>
		<!-- end css files for Grocery CRUD-->
    </head>
	

    <body <?if(isset($body_class))echo $body_class?>>
	<?	if(isset($page)){$this->load->view($page,$verify_profile_data);} ?>

        <!-- message dialog box -->
        <div id="msgDialog"><p></p></div>
    
        <div id="ajaxLoadAni">
        <img src="<?php echo base_url(); ?>assets/images/ajax-loader.gif" alt="Ajax Loading Animation" />
        <span>Loading...</span>
        </div>
        
        <div id='wrapper'>
        <div class="spacer"></div>
		<div>
			<noscript>
				<div class="error">Javascript has been disabled on your browser.some Functions may not work</div>
			</noscript>
        
			<!--start Echo the page-->
			<?php echo $yield; ?>
			<!--end echo the page-->
        </div>
        </div>
		
		<!-- START javascript files for Grocery CRUD-->
		<?php if(!empty($output->js_files)):?>
			<?php foreach($output->js_files as $files): ?>
				<script type="text/javascript" src="<?echo $files;?>"></script>
			<?endforeach;?>
		<?php endif;?>
		<!-- END javascript files for Grocery CRUD-->
		
    </body>
</html>